
#include "Entity/AEntity.hpp"

using namespace	Entity;

AEntity::AEntity() :	_coords()
{
}
AEntity::AEntity(AEntity const &ae) : _coords(ae._coords)
{
}

AEntity const	&AEntity::operator=(AEntity const &ae)
{
	if (this != &ae)
		this->_coords = ae._coords;

	return *this;
}

float							AEntity::getX() const throw()
{
	return this->_coords.getX();
}
float							AEntity::getY() const throw()
{
	return this->_coords.getY();
}
float							AEntity::getAngle() const throw()
{
	return this->_coords.getAngle();
}
Component::Coordinates const	&AEntity::getCoordinates() const throw()
{
	return this->_coords;
}

void			AEntity::setCoordinates(Component::Coordinates const &c)
{
	this->_coords = c;
}
void			AEntity::setPosition(float x, float y)
{
	this->_coords.setPosition(x, y);
}
void			AEntity::setAngle(float a)
{
	this->_coords.setAngle(a);
}
void			AEntity::setTranslation(float x, float y)
{
	this->_coords.setTranslation(x, y);
}
void			AEntity::setRotation(float a)
{
	this->_coords.setRotation(a);
}
void			AEntity::setCoordinatesTranslation(Component::Coordinates const &c)
{
	this->_coords.setTranslation(c.getX(), c.getY());
}
